#include "uartApi.h"
#include "read_date.h"
#define COMPORT "/dev/ttymxc4"
#define Speed 9600
#define BIT 8
#define EVEN 'N'
#define STOP 1
int main()
{
char date;
	int scanner_fd = set_opt(COMPORT,Speed,BIT,EVEN,STOP);
	while(1)
	{
		date = read_date(scanner_fd);
		printf("%c\n",date );

	}
}